package oop.ex2.objects;

import java.util.ArrayList;

public class Method {
    private String name;
    private String returnType;
    private ArrayList<String> argumentsType;

    public Method(String name, String returnType, ArrayList<String> argumentsType) {
        this.setName(name);
        this.setArgumentsType(argumentsType);
        this.setReturnType(returnType);
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getReturnType() {
        return returnType;
    }

    public void setReturnType(String returnType) {
        this.returnType = returnType;
    }

    public ArrayList<String> getArgumentsType() {
        return argumentsType;
    }

    public void setArgumentsType(ArrayList<String> argumentsType) {
        this.argumentsType = argumentsType;
    }
}
